package com.xbh.Book.service;

import com.xbh.Book.pojo.User;

/**
 * @program: JavaWebExer
 * @description: 业务层，一个业务一个方法
 * @author: 许宝华
 * @create: 2021-04-13 09:12
 */

public interface UserService {
    /**
     *注册用户
     * @param user
     * @return void
     * @author 许宝华
     * @creed: Talk is cheap,show me the code
     * @date 2021/4/13 9:17
     */
    public void registUser(User user);


    /**
     *登录
     * @param user
     * @return void
     * @author 许宝华
     * @creed: Talk is cheap,show me the code
     * @date 2021/4/13 9:17
     */
    public User login(User user);


    /**
     *检查用户名是否可用
     * @param username
     * @return 返回true表明用户名已经存在
     * @author 许宝华
     * @creed: Talk is cheap,show me the code
     * @date 2021/4/13 9:17
     */
    public boolean existsUsername(String username);
}
